package com.ithuaxin.identifier;

import java.util.Scanner;

public class Test18 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入一个整数");
        int a = sc.nextInt();
        int temp = a;
        int ge = 0;
        int sum = 0;
        while (a != 0){
            ge = a%10;
            a = a /10;
            sum= sum*10 + ge;
        }
        if (sum == temp){
            System.out.println("这个数是回文数");
        }
        else{
            System.out.println("这个数不是回文数");
        }
    }
}
